﻿using RpcCentral.Service.Interface;
using RpcCentral.Service.Route;
using RpcModel;

namespace RpcCentral.Service.Event
{
    internal class ContrainerLoginEvent : TcpRoute<RpcServerLogin, RpcServerLoginRes>
    {
        private IContrainerLoginService _ServerLogin;
        public ContrainerLoginEvent(IContrainerLoginService server) : base()
        {
            _ServerLogin = server;
        }
        protected override RpcServerLoginRes ExecAction(RpcServerLogin obj, string ip)
        {
            return _ServerLogin.Login(obj, ip);
        }
    }
}
